<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>医生列表</title>
</head>
<body>
	<c:choose>
		<c:when test="${not empty map.list}">
				<table class="easyui-datagrid" 
					data-options="striped:true,fit:true,
					loadMsg:'数据加载中',singleSelect:true,">
					<thead>   
				        <tr>
				        	<th data-options="field:'staff_id',halign:'center',hidden:true">医生编号</th>  
				            <th data-options="field:'doctor_name',width:'15%',halign:'center'">医生姓名</th>   
				            <th data-options="field:'doctor_title_name',width:'18%',halign:'center'">医生职称</th>   
				            <th data-options="field:'build',width:'20%',halign:'center'">大楼</th> 
				            <th data-options="field:'floor',width:'15%',halign:'center'">楼层</th>   
				            <th data-options="field:'office_function_name',width:'20%',halign:'center'">房间</th> 
				            <th data-options="field:'caozuo',width:'12%',halign:'center',formatter:select_doctor_caozuo">
				        </tr>   
				    </thead>   
				    <tbody> 
				    	  <c:forEach var="x" items="${ map.list}">
				    	  	<tr>
				    	  		<td>${x.staff_id }</td>
				    	  		<td>${x.doctor_name } </td>
				    	  		<td>${x.doctor_title_name} </td>
				    	  		<td>${x.build }</td>
				    	  		<td>${x.floor}  </td>
				    	  		<td>${x.office_function_name}</td> </tr>
				    	  </c:forEach>
					</tbody>				
				</table>
			
		</c:when>
		<c:otherwise>
				<h3 style="text-align:center">${map.result }</h3>
		</c:otherwise>
	</c:choose>
	<!-- 弹出挂号收费窗口 -->
	<div class="easyui-window" id="to_charge_guahao" title="挂号收费清单"
		style="width: 550px; height: 350px" href="to_charge_guahao"
		data-options="closed:'true',model:true,onLoad:fuzhi2"></div>
</body>
</html>